FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.4.11  |  FHIR Version n/a  User: [n/a]

Resource Measure/FHIR Server from package who.fhir.anc-cds#current (141 ms)

Package who.fhir.anc-cds
Type Measure
Id Id
FHIR Version R4
Source http://fhir.org/guides/who/anc-cds/https://build.fhir.org/ig/dhes/smart-anc/Measure-ANCIND07.html
Url http://fhir.org/guides/who/anc-cds/Measure/ANCIND07
Version 0.3.0
Status draft
Date 2025-01-17T18:00:16-06:00
Name ANCIND07
Title ANC.IND.07 Percentage of pregnant women with at least one blood pressure measure duringĀ ANC
Experimental False
Realm uv
Authority who
Description Percentage of pregnant women with at least one blood pressure measure duringĀ ANC

Resources that use this resource

No resources found


Resources that this resource uses

No resources found



Narrative

Note: links and images are rebased to the (stated) source

Knowledge Artifact Metadata
Name (machine-readable) ANCIND07
Title (human-readable) ANC.IND.07 Percentage of pregnant women with at least one blood pressure measure during ANC
Status Draft
Experimental false
Description

Percentage of pregnant women with at least one blood pressure measure during ANC

Measure Steward World Health Organization (WHO)
Steward Contact Details https://www.who.int
Measure Metadata
Version Number 0.3.0
Measure Scoring Proportion
Measure Type Process
Improvement Notation Increased score indicates improvement
Measure Population Criteria (ID: group-1)
Initial Population ID: initial-population
Description: No description provided Logic Definition: Initial Population
Denominator ID: denominator
Description: No description provided Logic Definition: Denominator
Numerator ID: numerator
Description: No description provided Logic Definition: Numerator
Stratifier ID: by-age
Stratifier ID: by-education-level
Stratifier ID: by-trimester-category
Measure Logic
Primary Library ANC.IND.07 Percentage of pregnant women with at least one blood pressure measure during ANC
Dependency Description: Library PatientData
Resource: ANC Data Elements
Canonical URL: http://fhir.org/guides/who/anc-cds/Library/ANCDataElements
Dependency Description: Library Cx
Resource: ANC Concepts
Canonical URL: http://fhir.org/guides/who/anc-cds/Library/ANCConcepts
Dependency Description: Library FHIRHelpers
Resource: http://fhir.org/guides/who/anc-cds/Library/FHIRHelpers|4.0.1
Canonical URL: http://fhir.org/guides/who/anc-cds/Library/FHIRHelpers|4.0.1
Dependency Description: Library WC
Resource: WHO Common
Canonical URL: http://fhir.org/guides/who/anc-cds/Library/WHOCommon
Dependency Description: Library BaseData
Resource: ANC Base Data Elements
Canonical URL: http://fhir.org/guides/who/anc-cds/Library/ANCBaseDataElements
Dependency Description: Library BCx
Resource: ANC Base Concepts
Canonical URL: http://fhir.org/guides/who/anc-cds/Library/ANCBaseConcepts
Dependency Description: Library Stratifiers
Resource: ANC Stratifiers
Canonical URL: http://fhir.org/guides/who/anc-cds/Library/ANCStratifiers
Dependency Description: Library FC
Resource: FHIRCommon
Canonical URL: http://fhir.org/guides/who/anc-cds/Library/FHIRCommon
Dependency Description: Library ContactData
Resource: ANC Contact Data Elements
Canonical URL: http://fhir.org/guides/who/anc-cds/Library/ANCContactDataElements
Dependency Description: Code system ISO-8601-Derived Periods
Resource: http://ohie.org/CodeSystem/iso-8601-derived-periods
Canonical URL: http://ohie.org/CodeSystem/iso-8601-derived-periods
Dependency Description: Value set Systolic blood pressure
Resource: Systolic blood pressure
Canonical URL: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de17
Dependency Description: Value set Antenatal care case
Resource: Antenatal care case
Canonical URL: http://fhir.org/guides/who/anc-cds/ValueSet/antenatal-care-case
Dependency Description: Value set Diastolic blood pressure
Resource: Diastolic blood pressure
Canonical URL: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de19
Dependency Description: Value set Reason for closing ANC record
Resource: Reason for closing ANC record
Canonical URL: http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-1
Dependency Description: Value set Qualifying Reason for closing ANC record Choices
Resource: Qualifying Reason for closing ANC record Choices
Canonical URL: http://fhir.org/guides/who/anc-cds/ValueSet/qualifying-reason-for-closing-anc-record-choices
Dependency Description: Value set Gestational age
Resource: Gestational age
Canonical URL: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de17
Direct Reference Code Display: 10-14 years
Code: P10Y--P14Y
System: http://ohie.org/CodeSystem/iso-8601-derived-periods
Direct Reference Code Display: 15-19 years
Code: P15Y--P19Y
System: http://ohie.org/CodeSystem/iso-8601-derived-periods
Direct Reference Code Display: 20+ years
Code: P20Y--P9999Y
System: http://ohie.org/CodeSystem/iso-8601-derived-periods
Parameter Name: Measurement Period
Use: In
Min Cardinality: 0
Max Cardinality: 1
Type: Period
Parameter Name: encounter
Use: In
Min Cardinality: 0
Max Cardinality: 1
Type: string
Parameter Name: Numerator
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Parameter Name: Age Stratifier
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: Coding
Parameter Name: Denominator
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Parameter Name: Education Level Stratifier
Use: Out
Min Cardinality: 0
Max Cardinality: *
Type: CodeableConcept
Parameter Name: Initial Population
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: boolean
Parameter Name: Trimester Category Stratifier
Use: Out
Min Cardinality: 0
Max Cardinality: 1
Type: string
Measure Logic Data Requirements
Data Requirement Type: Observation
Profile(s): Observation
Must Support Elements: code, status, issued
Code Filter(s):
Path: code
ValueSet: Systolic blood pressure
Data Requirement Type: Observation
Profile(s): Observation
Must Support Elements: code, status, issued
Code Filter(s):
Path: code
ValueSet: Diastolic blood pressure
Data Requirement Type: Observation
Profile(s): Observation
Must Support Elements: code, status, effective, value
Code Filter(s):
Path: code
ValueSet: Reason for closing ANC record
Data Requirement Type: Observation
Profile(s): Observation
Must Support Elements: code, status, encounter, encounter.reference
Code Filter(s):
Path: code
ValueSet: Gestational age
Data Requirement Type: EpisodeOfCare
Profile(s): EpisodeOfCare
Must Support Elements: type
Code Filter(s):
Path: type
ValueSet: Antenatal care case
Data Requirement Type: Patient
Profile(s): Patient
Must Support Elements: url, value
Measure Logic Definitions
Logic Definition Library Name: ANCDataElements
/*
  @dataElement: ANC.B8.DE17 Systolic blood pressure
  @activity: ANC.B8. Conduct physical exam
  @description: Systolic blood pressure (SBP) in mmHg
*/
define "Systolic blood pressure":
  [Observation: Cx."Systolic blood pressure"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
Logic Definition Library Name: ANCBaseDataElements
/*
define "Pregnant":
  "Pregnancy" is not null
    or "Pregnancy status" in BCx."Pregnancy status - pregnant"

define "Pregnancy status":
  FHIRHelpers.ToConcept(
    Last(
      [Observation: BCx."Pregnancy status"] O
        where O.status = 'final'
        sort by FHIRHelpers.ToDateTime(effective as FHIR.dateTime)
    ).value
  )
*/

define "Antenatal care case":
  ["EpisodeOfCare": type in BCx."Antenatal care case"]
Logic Definition Library Name: ANCBaseDataElements
/*
@description: Most recent antenatal care case
*/
define "Pregnancy":
  First(
    "Antenatal care case" E
		  sort by start of period descending
	)
Logic Definition Library Name: ANCDataElements
/*
  @dataElement: ANC.B8.DE19 Diastolic blood pressure
  @activity: ANC.B8. Conduct physical exam
  @description: Diastolic blood pressure (DBP) in mmHg
*/
define "Diastolic blood pressure":
  [Observation: Cx."Diastolic blood pressure"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
Logic Definition Library Name: ANCIND07
/*
Numerator: Number of antenatal clients with blood pressure measured
Numerator Computation: COUNT of all women who had their blood pressure measured at least once during pregnancy
*/
define Numerator:
  exists (
    PatientData."Systolic blood pressure" O
      where O.issued during BaseData."Pregnancy".period
  )
    or exists (
      PatientData."Diastolic blood pressure" O
        where O.issued during BaseData."Pregnancy".period
    )
Logic Definition Library Name: ANCStratifiers
/*
By Patient Age as of the start of the Measurement Period
Age (10-14, 15-19, 20+)
*/
define "By Age":
  case
    when AgeInYearsAt(start of "Measurement Period") in Interval[10, 14] then "P10Y--P14Y"
    when AgeInYearsAt(start of "Measurement Period") in Interval[15, 19] then "P15Y--P19Y"
    when AgeInYearsAt(start of "Measurement Period") >= 20 then "P20Y--P9999Y"
    else null
  end
Logic Definition Library Name: ANCIND07
/*
Disaggregation: Age (10-14, 15-19, 20+)
*/
define "Age Stratifier":
  Stratifiers."By Age"
Logic Definition Library Name: ANCDataElements
/*
  @dataElement: ANC.End.1 Reason for closing ANC record
  @activity: ANC.End End
  @description: Select the reason why you are closing the woman's ANC record
*/
define "Reason for closing ANC record":
  [Observation: Cx."Reason for closing ANC record"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
Logic Definition Library Name: ANCIND07
/*
Denominator: Total number of antenatal clients with a first contact
Denominator Computation: COUNT of all women whose records were closed (ANC close form) in the last reporting period due to any of the reasons below:
*live birth
*stillbirth
*miscarriage
*abortion
*woman died
*lost to follow-up
*moved away
*/
define Denominator:
  exists (
    PatientData."Reason for closing ANC record" R
      where FC.ToInterval(R.effective) during "Measurement Period"
        and R.value as FHIR.CodeableConcept in Stratifiers."Qualifying Reason for closing ANC record Choices"
  )
Logic Definition Library Name: ANCStratifiers
/*
By Patient Education Level (none, don't know, primary, secondary, higher)
*/
define "By Education Level":
  Patient.extension E
    where E.url = 'http://fhir.org/guides/who/anc-cds/StructureDefinition/educationlevel'
    return E.value as CodeableConcept
Logic Definition Library Name: ANCIND07
/*
Disaggregation: Education Level (none, don't know, primary, secondary, higher)
*/
define "Education Level Stratifier":
  Stratifiers."By Education Level"
Logic Definition Library Name: ANCIND07
/*
Initial population: Antenatal clients
*/
define "Initial Population":
  exists (BaseData."Antenatal care case")
Logic Definition Library Name: ANCContactDataElements
/*
  @dataElement: ANC.B6.DE17 Gestational age
  @activity: ANC.B6 Profile
  @description: Gestational age in weeks and/or days depending on the source of gestational age
*/
define "Gestational age":
  WC.MostRecent(
  [Observation: Cx."Gestational age"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
      and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))
  ).value as FHIR.Quantity
Logic Definition Library Name: ANCStratifiers
/*
By Trimester Category: 1st (GA ≤ 12/weeks); 2nd (GA > 12/weeks to ≤ 28/weeks); 3rd (GA > 28/weeks)
*/
define "By Trimester Category":
  case
    when ContactData."Gestational age" <= 12 weeks then 'GA ≤ 12/weeks'
    when ContactData."Gestational age" <= 28 weeks then 'GA > 12/weeks to ≤ 28/weeks'
    else 'GA > 28/weeks'
  end
Logic Definition Library Name: ANCIND07
/*
Disaggregation: Trimester categories: 1st (GA ≤ 12/weeks); 2nd (GA > 12/weeks to ≤ 28/weeks); 3rd (GA > 28/weeks)
*/
define "Trimester Category Stratifier":
  Stratifiers."By Trimester Category"
Logic Definition Library Name: FHIRHelpers
define function ToString(value ObservationStatus): value.value
Logic Definition Library Name: FHIRHelpers
define function ToBoolean(value boolean): value.value
Logic Definition Library Name: WHOCommon
/*
@description: Returns the single WHO core modifier extension (if present) on the given resource with the specified id.
@comment: This function uses singleton from to ensure that a run-time exception is thrown if there
is more than one extension on the given resource with the specified url.
*/
define function ModifierExtension(domainResource DomainResource, id String):
  singleton from ModifierExtensions(domainResource, id)
Logic Definition Library Name: WHOCommon
/*
@description: Returns any WHO core modifier extensions defined on the given resource with the specified id.
@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access
content that is defined by extensions but not yet surfaced in the
CQL model info.
*/
define function ModifierExtensions(domainResource DomainResource, id String):
  domainResource.modifierExtension E
	  where E.url = ('http://fhir.org/guides/who/core/StructureDefinition/' + id)
		return E
Logic Definition Library Name: FHIRHelpers
define function ToDateTime(value instant): value.value
Logic Definition Library Name: FHIRHelpers
define function ToInterval(period FHIR.Period):
    if period is null then
        null
    else
        if period."start" is null then
            Interval(period."start".value, period."end".value]
        else
            Interval[period."start".value, period."end".value]
Logic Definition Library Name: FHIRHelpers
define function ToConcept(concept FHIR.CodeableConcept):
    if concept is null then
        null
    else
        System.Concept {
            codes: concept.coding C return ToCode(C),
            display: concept.text.value
        }
Logic Definition Library Name: FHIRHelpers
define function ToQuantity(quantity FHIR.Quantity):
    case
        when quantity is null then null
        when quantity.value is null then null
        when quantity.comparator is not null then
            Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')
        when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'
              or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then
            System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }
        else
            Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')
    end
Logic Definition Library Name: FHIRHelpers
define function ToCalendarUnit(unit System.String):
    case unit
        when 'ms' then 'millisecond'
        when 's' then 'second'
        when 'min' then 'minute'
        when 'h' then 'hour'
        when 'd' then 'day'
        when 'wk' then 'week'
        when 'mo' then 'month'
        when 'a' then 'year'
        else unit
    end
Logic Definition Library Name: WHOCommon
define function MostRecent(observations List<Observation>):
  Last(
    observations O
      sort by issued
  )
Generated using version 0.4.6 of the sample-content-ig Liquid templates

Source

{
  "resourceType" : "Measure",
  "id" : "ANCIND07",
  "meta" : {
    "profile" : [
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"
    ]
  },
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <table class=\"narrative-table\">\n <tbody>\n<tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Knowledge Artifact Metadata</th>\n\n</tr>\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Name (machine-readable)</th>\n\n<td class=\"content-container\">ANCIND07</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Title (human-readable)</th>\n\n<td class=\"content-container\">ANC.IND.07 Percentage of pregnant women with at least one blood pressure measure during�ANC</td>\n</tr>\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Status</th>\n\n<td class=\"content-container\">Draft</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Experimental</th>\n\n<td class=\"content-container\">false</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n<td class=\"content-container\"><div><p>Percentage of pregnant women with at least one blood pressure measure during�ANC</p>\n</div></td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Measure Steward</th>\n\n<td class=\"content-container\">World Health Organization (WHO)</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Steward Contact Details</th>\n\n<td class=\"content-container\"><a href=\"https://www.who.int\">https://www.who.int</a></td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Metadata</th>\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Version Number</th>\n\n<td class=\"content-container\">0.3.0</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Measure Scoring</th>\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-scoring proportion}\">Proportion</span></td>\n</tr>\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Measure Type</th>\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-type process}\">Process</span></td>\n</tr>\n\n\n\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Improvement Notation</th>\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-improvement-notation increase}\">Increased score indicates improvement</span></td>\n</tr>\n\n\n\n\n\n\n\n\n \n \n <tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Population Criteria (ID: group-1)</th>\n\n</tr>\n \n \n \n \n <tr>\n \n \n \n \n<th scope=\"row\" class=\"row-header\">Initial Population</th>\n\n \n \n \n \n \n \n \n \n \n \n \n <td class=\"content-container\">\n \n <em>ID</em>: initial-population\n <br/>\n \n \n <em>Description</em>: No description provided\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#ancind07-initial-population\">Initial Population</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Denominator</th>\n\n \n \n \n \n \n \n \n \n <td class=\"content-container\">\n \n <em>ID</em>: denominator\n <br/>\n \n \n <em>Description</em>: No description provided\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#ancind07-denominator\">Denominator</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Numerator</th>\n\n \n \n \n \n \n \n \n \n \n \n <td class=\"content-container\">\n \n <em>ID</em>: numerator\n <br/>\n \n \n <em>Description</em>: No description provided\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#ancind07-numerator\">Numerator</a> \n \n \n </td>\n </tr>\n \n\n \n<tr>\n \n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: by-age\n \n \n \n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: by-education-level\n \n \n \n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: by-trimester-category\n \n \n \n \n </td>\n</tr>\n\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Logic</th>\n\n</tr>\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Primary Library</th>\n\n<td class=\"content-container\"><a href=\"Library-ANCIND07.html\">ANC.IND.07 Percentage of pregnant women with at least one blood pressure measure during�ANC</a></td>\n</tr>\n\n\n\n\n \n \n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library PatientData\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-ANCDataElements.html\">ANC Data Elements</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/Library/ANCDataElements</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library Cx\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-ANCConcepts.html\">ANC Concepts</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/Library/ANCConcepts</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library FHIRHelpers\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://fhir.org/guides/who/anc-cds/Library/FHIRHelpers|4.0.1</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/Library/FHIRHelpers|4.0.1</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library WC\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-WHOCommon.html\">WHO Common</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/Library/WHOCommon</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library BaseData\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-ANCBaseDataElements.html\">ANC Base Data Elements</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/Library/ANCBaseDataElements</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library BCx\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-ANCBaseConcepts.html\">ANC Base Concepts</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/Library/ANCBaseConcepts</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library Stratifiers\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-ANCStratifiers.html\">ANC Stratifiers</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/Library/ANCStratifiers</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library FC\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-FHIRCommon.html\">FHIRCommon</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/Library/FHIRCommon</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library ContactData\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-ANCContactDataElements.html\">ANC Contact Data Elements</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/Library/ANCContactDataElements</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system ISO-8601-Derived Periods\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://ohie.org/CodeSystem/iso-8601-derived-periods</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://ohie.org/CodeSystem/iso-8601-derived-periods</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Systolic blood pressure\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-anc-b8-de17.html\">Systolic blood pressure</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de17</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Antenatal care case\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-antenatal-care-case.html\">Antenatal care case</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/ValueSet/antenatal-care-case</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Diastolic blood pressure\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-anc-b8-de19.html\">Diastolic blood pressure</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de19</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Reason for closing ANC record\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-anc-end-1.html\">Reason for closing ANC record</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-1</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Qualifying Reason for closing ANC record Choices\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-qualifying-reason-for-closing-anc-record-choices.html\">Qualifying Reason for closing ANC record Choices</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/ValueSet/qualifying-reason-for-closing-anc-record-choices</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Gestational age\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"ValueSet-anc-b6-de17.html\">Gestational age</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de17</tt>\n \n </td>\n</tr>\n\n\n \n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: 10-14 years\n <br/>\n \n <em>Code</em>: P10Y--P14Y\n <br/>\n <em>System</em>: <tt>http://ohie.org/CodeSystem/iso-8601-derived-periods</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: 15-19 years\n <br/>\n \n <em>Code</em>: P15Y--P19Y\n <br/>\n <em>System</em>: <tt>http://ohie.org/CodeSystem/iso-8601-derived-periods</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: 20+ years\n <br/>\n \n <em>Code</em>: P20Y--P9999Y\n <br/>\n <em>System</em>: <tt>http://ohie.org/CodeSystem/iso-8601-derived-periods</tt>\n </td>\n </tr>\n\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: Measurement Period\n <br/>\n <em>Use</em>: In\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: Period\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: encounter\n <br/>\n <em>Use</em>: In\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: string\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: Numerator\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: boolean\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: Age Stratifier\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: Coding\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: Denominator\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: boolean\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: Education Level Stratifier\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: *\n <br/>\n <em>Type</em>: CodeableConcept\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: Initial Population\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: boolean\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: Trimester Category Stratifier\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: string\n </td>\n</tr>\n \n \n <tr>\n <th colspan=\"2\" scope=\"row\" class=\"section-header\"><a name=\"effective-data-requirements\"> </a>Measure Logic Data Requirements</th>\n </tr>\n \n \n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, issued\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: code</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-anc-b8-de17.html\">Systolic blood pressure</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, issued\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: code</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-anc-b8-de19.html\">Diastolic blood pressure</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, effective, value\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: code</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-anc-end-1.html\">Reason for closing ANC record</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, encounter, encounter.reference\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: code</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-anc-b6-de17.html\">Gestational age</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: EpisodeOfCare\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/episodeofcare.html\">EpisodeOfCare</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-antenatal-care-case.html\">Antenatal care case</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Patient\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: url, value\n <br/>\n \n \n </td>\n</tr>\n\n \n <tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Logic Definitions</th>\n\n</tr>\n \n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancdataelements-systolic-blood-pressure\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n @dataElement: ANC.B8.DE17 Systolic blood pressure\n @activity: ANC.B8. Conduct physical exam\n @description: Systolic blood pressure (SBP) in mmHg\n*/\ndefine &quot;Systolic blood pressure&quot;:\n [Observation: Cx.&quot;Systolic blood pressure&quot;] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancbasedataelements-antenatal-care-case\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCBaseDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\ndefine &quot;Pregnant&quot;:\n &quot;Pregnancy&quot; is not null\n or &quot;Pregnancy status&quot; in BCx.&quot;Pregnancy status - pregnant&quot;\n\ndefine &quot;Pregnancy status&quot;:\n FHIRHelpers.ToConcept(\n Last(\n [Observation: BCx.&quot;Pregnancy status&quot;] O\n where O.status = 'final'\n sort by FHIRHelpers.ToDateTime(effective as FHIR.dateTime)\n ).value\n )\n*/\n\ndefine &quot;Antenatal care case&quot;:\n [&quot;EpisodeOfCare&quot;: type in BCx.&quot;Antenatal care case&quot;]</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancbasedataelements-pregnancy\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCBaseDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Most recent antenatal care case\n*/\ndefine &quot;Pregnancy&quot;:\n First(\n &quot;Antenatal care case&quot; E\n\t\t sort by start of period descending\n\t)</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancdataelements-diastolic-blood-pressure\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n @dataElement: ANC.B8.DE19 Diastolic blood pressure\n @activity: ANC.B8. Conduct physical exam\n @description: Diastolic blood pressure (DBP) in mmHg\n*/\ndefine &quot;Diastolic blood pressure&quot;:\n [Observation: Cx.&quot;Diastolic blood pressure&quot;] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancind07-numerator\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCIND07</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\nNumerator: Number of antenatal clients with blood pressure measured\nNumerator Computation: COUNT of all women who had their blood pressure measured at least once during pregnancy\n*/\ndefine Numerator:\n exists (\n PatientData.&quot;Systolic blood pressure&quot; O\n where O.issued during BaseData.&quot;Pregnancy&quot;.period\n )\n or exists (\n PatientData.&quot;Diastolic blood pressure&quot; O\n where O.issued during BaseData.&quot;Pregnancy&quot;.period\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancstratifiers-by-age\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCStratifiers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\nBy Patient Age as of the start of the Measurement Period\nAge (10-14, 15-19, 20+)\n*/\ndefine &quot;By Age&quot;:\n case\n when AgeInYearsAt(start of &quot;Measurement Period&quot;) in Interval[10, 14] then &quot;P10Y--P14Y&quot;\n when AgeInYearsAt(start of &quot;Measurement Period&quot;) in Interval[15, 19] then &quot;P15Y--P19Y&quot;\n when AgeInYearsAt(start of &quot;Measurement Period&quot;) &gt;= 20 then &quot;P20Y--P9999Y&quot;\n else null\n end</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancind07-age-stratifier\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCIND07</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\nDisaggregation: Age (10-14, 15-19, 20+)\n*/\ndefine &quot;Age Stratifier&quot;:\n Stratifiers.&quot;By Age&quot;</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancdataelements-reason-for-closing-anc-record\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n @dataElement: ANC.End.1 Reason for closing ANC record\n @activity: ANC.End End\n @description: Select the reason why you are closing the woman's ANC record\n*/\ndefine &quot;Reason for closing ANC record&quot;:\n [Observation: Cx.&quot;Reason for closing ANC record&quot;] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancind07-denominator\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCIND07</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\nDenominator: Total number of antenatal clients with a�first contact\nDenominator Computation: COUNT of all women whose records were closed (ANC close form) in the last reporting period due to any of the reasons below:\n*live birth\n*stillbirth\n*miscarriage\n*abortion\n*woman died\n*lost to follow-up\n*moved away\n*/\ndefine Denominator:\n exists (\n PatientData.&quot;Reason for closing ANC record&quot; R\n where FC.ToInterval(R.effective) during &quot;Measurement Period&quot;\n and R.value as FHIR.CodeableConcept in Stratifiers.&quot;Qualifying Reason for closing ANC record Choices&quot;\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancstratifiers-by-education-level\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCStratifiers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\nBy Patient Education Level (none, don't know, primary, secondary, higher)\n*/\ndefine &quot;By Education Level&quot;:\n Patient.extension E\n where E.url = 'http://fhir.org/guides/who/anc-cds/StructureDefinition/educationlevel'\n return E.value as CodeableConcept</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancind07-education-level-stratifier\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCIND07</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\nDisaggregation: Education Level (none, don't know, primary, secondary, higher)\n*/\ndefine &quot;Education Level Stratifier&quot;:\n Stratifiers.&quot;By Education Level&quot;</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancind07-initial-population\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCIND07</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\nInitial population: Antenatal clients\n*/\ndefine &quot;Initial Population&quot;:\n exists (BaseData.&quot;Antenatal care case&quot;)</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"anccontactdataelements-gestational-age\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCContactDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n @dataElement: ANC.B6.DE17 Gestational age\n @activity: ANC.B6 Profile\n @description: Gestational age in weeks and/or days depending on the source of gestational age\n*/\ndefine &quot;Gestational age&quot;:\n WC.MostRecent(\n [Observation: Cx.&quot;Gestational age&quot;] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.Quantity</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancstratifiers-by-trimester-category\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCStratifiers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\nBy Trimester Category: 1st (GA ≤ 12/weeks); 2nd (GA &gt; 12/weeks to ≤ 28/weeks); 3rd (GA &gt; 28/weeks)\n*/\ndefine &quot;By Trimester Category&quot;:\n case\n when ContactData.&quot;Gestational age&quot; &lt;= 12 weeks then 'GA ≤ 12/weeks'\n when ContactData.&quot;Gestational age&quot; &lt;= 28 weeks then 'GA &gt; 12/weeks to ≤ 28/weeks'\n else 'GA &gt; 28/weeks'\n end</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"ancind07-trimester-category-stratifier\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> ANCIND07</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\nDisaggregation: Trimester categories: 1st (GA ≤ 12/weeks); 2nd (GA &gt; 12/weeks to ≤ 28/weeks); 3rd (GA &gt; 28/weeks)\n*/\ndefine &quot;Trimester Category Stratifier&quot;:\n Stratifiers.&quot;By Trimester Category&quot;</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value ObservationStatus): value.value</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-toboolean\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToBoolean(value boolean): value.value</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"whocommon-modifierextension\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> WHOCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns the single WHO core modifier extension (if present) on the given resource with the specified id.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\ndefine function ModifierExtension(domainResource DomainResource, id String):\n singleton from ModifierExtensions(domainResource, id)</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"whocommon-modifierextensions\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> WHOCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns any WHO core modifier extensions defined on the given resource with the specified id.\n@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the\nCQL model info.\n*/\ndefine function ModifierExtensions(domainResource DomainResource, id String):\n domainResource.modifierExtension E\n\t where E.url = ('http://fhir.org/guides/who/core/StructureDefinition/' + id)\n\t\treturn E</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-todatetime\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDateTime(value instant): value.value</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tointerval\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToInterval(period FHIR.Period):\n if period is null then\n null\n else\n if period.&quot;start&quot; is null then\n Interval(period.&quot;start&quot;.value, period.&quot;end&quot;.value]\n else\n Interval[period.&quot;start&quot;.value, period.&quot;end&quot;.value]</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-toconcept\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-toquantity\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToQuantity(quantity FHIR.Quantity):\n case\n when quantity is null then null\n when quantity.value is null then null\n when quantity.comparator is not null then\n Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n else\n Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' &amp; quantity.unit.value &amp; ' (' &amp; quantity.system.value &amp; '|' &amp; quantity.code.value &amp; ')')\n end</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tocalendarunit\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToCalendarUnit(unit System.String):\n case unit\n when 'ms' then 'millisecond'\n when 's' then 'second'\n when 'min' then 'minute'\n when 'h' then 'hour'\n when 'd' then 'day'\n when 'wk' then 'week'\n when 'mo' then 'month'\n when 'a' then 'year'\n else unit\n end</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"whocommon-mostrecent\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> WHOCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function MostRecent(observations List&lt;Observation&gt;):\n Last(\n observations O\n sort by issued\n )</code></pre>\n </td>\n\n</tr>\n\n \n\n<tr>\n <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.4.6 of the sample-content-ig Liquid templates</th>\n</tr>\n </tbody>\n </table>\n</div>"
  },
  "contained" : [
    {
      "resourceType" : "Library",
      "id" : "effective-data-requirements",
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode",
          "valueCoding" : {
            "system" : "http://ohie.org/CodeSystem/iso-8601-derived-periods",
            "code" : "P10Y--P14Y",
            "display" : "10-14 years"
          }
        },
        {
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode",
          "valueCoding" : {
            "system" : "http://ohie.org/CodeSystem/iso-8601-derived-periods",
            "code" : "P15Y--P19Y",
            "display" : "15-19 years"
          }
        },
        {
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode",
          "valueCoding" : {
            "system" : "http://ohie.org/CodeSystem/iso-8601-derived-periods",
            "code" : "P20Y--P9999Y",
            "display" : "20+ years"
          }
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCDataElements"
            },
            {
              "url" : "name",
              "valueString" : "Systolic blood pressure"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n @dataElement: ANC.B8.DE17 Systolic blood pressure\n @activity: ANC.B8. Conduct physical exam\n @description: Systolic blood pressure (SBP) in mmHg\n*/\ndefine \"Systolic blood pressure\":\n [Observation: Cx.\"Systolic blood pressure\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 0
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCBaseDataElements"
            },
            {
              "url" : "name",
              "valueString" : "Antenatal care case"
            },
            {
              "url" : "statement",
              "valueString" : "/*\ndefine \"Pregnant\":\n \"Pregnancy\" is not null\n or \"Pregnancy status\" in BCx.\"Pregnancy status - pregnant\"\n\ndefine \"Pregnancy status\":\n FHIRHelpers.ToConcept(\n Last(\n [Observation: BCx.\"Pregnancy status\"] O\n where O.status = 'final'\n sort by FHIRHelpers.ToDateTime(effective as FHIR.dateTime)\n ).value\n )\n*/\n\ndefine \"Antenatal care case\":\n [\"EpisodeOfCare\": type in BCx.\"Antenatal care case\"]"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 1
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCBaseDataElements"
            },
            {
              "url" : "name",
              "valueString" : "Pregnancy"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@description: Most recent antenatal care case\n*/\ndefine \"Pregnancy\":\n First(\n \"Antenatal care case\" E\n\t\t sort by start of period descending\n\t)"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 2
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCDataElements"
            },
            {
              "url" : "name",
              "valueString" : "Diastolic blood pressure"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n @dataElement: ANC.B8.DE19 Diastolic blood pressure\n @activity: ANC.B8. Conduct physical exam\n @description: Diastolic blood pressure (DBP) in mmHg\n*/\ndefine \"Diastolic blood pressure\":\n [Observation: Cx.\"Diastolic blood pressure\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 3
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCIND07"
            },
            {
              "url" : "name",
              "valueString" : "Numerator"
            },
            {
              "url" : "statement",
              "valueString" : "/*\nNumerator: Number of antenatal clients with blood pressure measured\nNumerator Computation: COUNT of all women who had their blood pressure measured at least once during pregnancy\n*/\ndefine Numerator:\n exists (\n PatientData.\"Systolic blood pressure\" O\n where O.issued during BaseData.\"Pregnancy\".period\n )\n or exists (\n PatientData.\"Diastolic blood pressure\" O\n where O.issued during BaseData.\"Pregnancy\".period\n )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 4
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCStratifiers"
            },
            {
              "url" : "name",
              "valueString" : "By Age"
            },
            {
              "url" : "statement",
              "valueString" : "/*\nBy Patient Age as of the start of the Measurement Period\nAge (10-14, 15-19, 20+)\n*/\ndefine \"By Age\":\n case\n when AgeInYearsAt(start of \"Measurement Period\") in Interval[10, 14] then \"P10Y--P14Y\"\n when AgeInYearsAt(start of \"Measurement Period\") in Interval[15, 19] then \"P15Y--P19Y\"\n when AgeInYearsAt(start of \"Measurement Period\") >= 20 then \"P20Y--P9999Y\"\n else null\n end"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 5
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCIND07"
            },
            {
              "url" : "name",
              "valueString" : "Age Stratifier"
            },
            {
              "url" : "statement",
              "valueString" : "/*\nDisaggregation: Age (10-14, 15-19, 20+)\n*/\ndefine \"Age Stratifier\":\n Stratifiers.\"By Age\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 6
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCDataElements"
            },
            {
              "url" : "name",
              "valueString" : "Reason for closing ANC record"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n @dataElement: ANC.End.1 Reason for closing ANC record\n @activity: ANC.End End\n @description: Select the reason why you are closing the woman's ANC record\n*/\ndefine \"Reason for closing ANC record\":\n [Observation: Cx.\"Reason for closing ANC record\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 7
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCIND07"
            },
            {
              "url" : "name",
              "valueString" : "Denominator"
            },
            {
              "url" : "statement",
              "valueString" : "/*\nDenominator: Total number of antenatal clients with a�first contact\nDenominator Computation: COUNT of all women whose records were closed (ANC close form) in the last reporting period due to any of the reasons below:\n*live birth\n*stillbirth\n*miscarriage\n*abortion\n*woman died\n*lost to follow-up\n*moved away\n*/\ndefine Denominator:\n exists (\n PatientData.\"Reason for closing ANC record\" R\n where FC.ToInterval(R.effective) during \"Measurement Period\"\n and R.value as FHIR.CodeableConcept in Stratifiers.\"Qualifying Reason for closing ANC record Choices\"\n )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 8
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCStratifiers"
            },
            {
              "url" : "name",
              "valueString" : "By Education Level"
            },
            {
              "url" : "statement",
              "valueString" : "/*\nBy Patient Education Level (none, don't know, primary, secondary, higher)\n*/\ndefine \"By Education Level\":\n Patient.extension E\n where E.url = 'http://fhir.org/guides/who/anc-cds/StructureDefinition/educationlevel'\n return E.value as CodeableConcept"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 9
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCIND07"
            },
            {
              "url" : "name",
              "valueString" : "Education Level Stratifier"
            },
            {
              "url" : "statement",
              "valueString" : "/*\nDisaggregation: Education Level (none, don't know, primary, secondary, higher)\n*/\ndefine \"Education Level Stratifier\":\n Stratifiers.\"By Education Level\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 10
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCIND07"
            },
            {
              "url" : "name",
              "valueString" : "Initial Population"
            },
            {
              "url" : "statement",
              "valueString" : "/*\nInitial population: Antenatal clients\n*/\ndefine \"Initial Population\":\n exists (BaseData.\"Antenatal care case\")"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 11
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCContactDataElements"
            },
            {
              "url" : "name",
              "valueString" : "Gestational age"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n @dataElement: ANC.B6.DE17 Gestational age\n @activity: ANC.B6 Profile\n @description: Gestational age in weeks and/or days depending on the source of gestational age\n*/\ndefine \"Gestational age\":\n WC.MostRecent(\n [Observation: Cx.\"Gestational age\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.Quantity"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 12
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCStratifiers"
            },
            {
              "url" : "name",
              "valueString" : "By Trimester Category"
            },
            {
              "url" : "statement",
              "valueString" : "/*\nBy Trimester Category: 1st (GA ≤ 12/weeks); 2nd (GA > 12/weeks to ≤ 28/weeks); 3rd (GA > 28/weeks)\n*/\ndefine \"By Trimester Category\":\n case\n when ContactData.\"Gestational age\" <= 12 weeks then 'GA ≤ 12/weeks'\n when ContactData.\"Gestational age\" <= 28 weeks then 'GA > 12/weeks to ≤ 28/weeks'\n else 'GA > 28/weeks'\n end"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 13
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "ANCIND07"
            },
            {
              "url" : "name",
              "valueString" : "Trimester Category Stratifier"
            },
            {
              "url" : "statement",
              "valueString" : "/*\nDisaggregation: Trimester categories: 1st (GA ≤ 12/weeks); 2nd (GA > 12/weeks to ≤ 28/weeks); 3rd (GA > 28/weeks)\n*/\ndefine \"Trimester Category Stratifier\":\n Stratifiers.\"By Trimester Category\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 14
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value ObservationStatus): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 15
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToBoolean"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToBoolean(value boolean): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 16
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "WHOCommon"
            },
            {
              "url" : "name",
              "valueString" : "ModifierExtension"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@description: Returns the single WHO core modifier extension (if present) on the given resource with the specified id.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\ndefine function ModifierExtension(domainResource DomainResource, id String):\n singleton from ModifierExtensions(domainResource, id)"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 17
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "WHOCommon"
            },
            {
              "url" : "name",
              "valueString" : "ModifierExtensions"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@description: Returns any WHO core modifier extensions defined on the given resource with the specified id.\n@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the\nCQL model info.\n*/\ndefine function ModifierExtensions(domainResource DomainResource, id String):\n domainResource.modifierExtension E\n\t where E.url = ('http://fhir.org/guides/who/core/StructureDefinition/' + id)\n\t\treturn E"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 18
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToDateTime"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToDateTime(value instant): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 19
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToInterval"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToInterval(period FHIR.Period):\n if period is null then\n null\n else\n if period.\"start\" is null then\n Interval(period.\"start\".value, period.\"end\".value]\n else\n Interval[period.\"start\".value, period.\"end\".value]"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 20
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToConcept"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 21
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToQuantity"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToQuantity(quantity FHIR.Quantity):\n case\n when quantity is null then null\n when quantity.value is null then null\n when quantity.comparator is not null then\n Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n else\n Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n end"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 22
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToCalendarUnit"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToCalendarUnit(unit System.String):\n case unit\n when 'ms' then 'millisecond'\n when 's' then 'second'\n when 'min' then 'minute'\n when 'h' then 'hour'\n when 'd' then 'day'\n when 'wk' then 'week'\n when 'mo' then 'month'\n when 'a' then 'year'\n else unit\n end"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 23
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "WHOCommon"
            },
            {
              "url" : "name",
              "valueString" : "MostRecent"
            },
            {
              "url" : "statement",
              "valueString" : "define function MostRecent(observations List<Observation>):\n Last(\n observations O\n sort by issued\n )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 24
            }
          ],
          "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
        }
      ],
      "name" : "EffectiveDataRequirements",
      "status" : "active",
      "type" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/library-type",
            "code" : "module-definition"
          }
        ]
      },
      "relatedArtifact" : [
        {
          "type" : "depends-on",
          "display" : "Library PatientData",
          "resource" : "http://fhir.org/guides/who/anc-cds/Library/ANCDataElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library Cx",
          "resource" : "http://fhir.org/guides/who/anc-cds/Library/ANCConcepts"
        },
        {
          "type" : "depends-on",
          "display" : "Library FHIRHelpers",
          "resource" : "http://fhir.org/guides/who/anc-cds/Library/FHIRHelpers|4.0.1"
        },
        {
          "type" : "depends-on",
          "display" : "Library WC",
          "resource" : "http://fhir.org/guides/who/anc-cds/Library/WHOCommon"
        },
        {
          "type" : "depends-on",
          "display" : "Library BaseData",
          "resource" : "http://fhir.org/guides/who/anc-cds/Library/ANCBaseDataElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library BCx",
          "resource" : "http://fhir.org/guides/who/anc-cds/Library/ANCBaseConcepts"
        },
        {
          "type" : "depends-on",
          "display" : "Library Stratifiers",
          "resource" : "http://fhir.org/guides/who/anc-cds/Library/ANCStratifiers"
        },
        {
          "type" : "depends-on",
          "display" : "Library FC",
          "resource" : "http://fhir.org/guides/who/anc-cds/Library/FHIRCommon"
        },
        {
          "type" : "depends-on",
          "display" : "Library ContactData",
          "resource" : "http://fhir.org/guides/who/anc-cds/Library/ANCContactDataElements"
        },
        {
          "type" : "depends-on",
          "display" : "Code system ISO-8601-Derived Periods",
          "resource" : "http://ohie.org/CodeSystem/iso-8601-derived-periods"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Systolic blood pressure",
          "resource" : "http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de17"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Antenatal care case",
          "resource" : "http://fhir.org/guides/who/anc-cds/ValueSet/antenatal-care-case"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Diastolic blood pressure",
          "resource" : "http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de19"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Reason for closing ANC record",
          "resource" : "http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-1"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Qualifying Reason for closing ANC record Choices",
          "resource" : "http://fhir.org/guides/who/anc-cds/ValueSet/qualifying-reason-for-closing-anc-record-choices"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Gestational age",
          "resource" : "http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de17"
        }
      ],
      "parameter" : [
        {
          "name" : "Measurement Period",
          "use" : "in",
          "min" : 0,
          "max" : "1",
          "type" : "Period"
        },
        {
          "name" : "encounter",
          "use" : "in",
          "min" : 0,
          "max" : "1",
          "type" : "string"
        },
        {
          "name" : "Numerator",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Age Stratifier",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "Coding"
        },
        {
          "name" : "Denominator",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Education Level Stratifier",
          "use" : "out",
          "min" : 0,
          "max" : "*",
          "type" : "CodeableConcept"
        },
        {
          "name" : "Initial Population",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Trimester Category Stratifier",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "string"
        }
      ],
      "dataRequirement" : [
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "issued"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de17"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "issued"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de19"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "effective",
            "value"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-1"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de17"
            }
          ]
        },
        {
          "type" : "EpisodeOfCare",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
          ],
          "mustSupport" : [
            "type"
          ],
          "codeFilter" : [
            {
              "path" : "type",
              "valueSet" : "http://fhir.org/guides/who/anc-cds/ValueSet/antenatal-care-case"
            }
          ]
        },
        {
          "type" : "Patient",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Patient"
          ],
          "mustSupport" : [
            "url",
            "value"
          ]
        }
      ]
    }
  ],
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem",
      "valueReference" : {
        "reference" : "Device/cqf-tooling"
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem",
      "valueReference" : {
        "reference" : "Device/cqf-tooling"
      }
    },
    {
      "id" : "effective-data-requirements",
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements",
      "valueReference" : {
        "reference" : "#effective-data-requirements"
      }
    }
  ],
  "url" : "http://fhir.org/guides/who/anc-cds/Measure/ANCIND07",
  "version" : "0.3.0",
  "name" : "ANCIND07",
  "title" : "ANC.IND.07 Percentage of pregnant women with at least one blood pressure measure during�ANC",
  "status" : "draft",
  "experimental" : false,
  "date" : "2025-01-17T18:00:16-06:00",
  "publisher" : "World Health Organization (WHO)",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://www.who.int"
        }
      ]
    }
  ],
  "description" : "Percentage of pregnant women with at least one blood pressure measure during�ANC",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "library" : [
    "http://fhir.org/guides/who/anc-cds/Library/ANCIND07"
  ],
  "scoring" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/measure-scoring",
        "code" : "proportion"
      }
    ]
  },
  "type" : [
    {
      "coding" : [
        {
          "system" : "http://terminology.hl7.org/CodeSystem/measure-type",
          "code" : "process"
        }
      ]
    }
  ],
  "improvementNotation" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/measure-improvement-notation",
        "code" : "increase"
      }
    ]
  },
  "group" : [
    {
      "id" : "group-1",
      "population" : [
        {
          "id" : "initial-population",
          "code" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                "code" : "initial-population"
              }
            ]
          },
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "Initial Population"
          }
        },
        {
          "id" : "denominator",
          "code" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                "code" : "denominator"
              }
            ]
          },
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "Denominator"
          }
        },
        {
          "id" : "numerator",
          "code" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                "code" : "numerator"
              }
            ]
          },
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "Numerator"
          }
        }
      ],
      "stratifier" : [
        {
          "id" : "by-age",
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "Age Stratifier"
          }
        },
        {
          "id" : "by-education-level",
          "criteria" : {
            "expression" : "Education Level Stratifier"
          }
        },
        {
          "id" : "by-trimester-category",
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "Trimester Category Stratifier"
          }
        }
      ]
    }
  ]
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.